<template>
  <view class="authentication-success">
    <view class="authentication-success__details">
      <image :src="'success.png' | prefixOssUrl" />
      <view class="success">恭喜您！认证成功。</view>
    </view>
    <view class="authentication-success__back" @tap="swi('/pages/mine/index')"> 返回 </view>
  </view>
</template>
<script>
  import {
    mapActions
  } from 'vuex';
  export default {
    onLoad() {
      this.getUserInfo();
    },
    methods: {
      ...mapActions('user', ['getUserInfo']),
    }
  }
</script>
<style lang="less" scoped>
  .authentication-success {
    position: relative;
    min-height: 100vh;
    background: #F8F8F8;

    .authentication-success__details {
      position: absolute;
      top: 334rpx;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 100%;

      image {
        width: 100rpx;
        height: 100rpx;
        margin-bottom: 40rpx;
      }

      >view {
        font-size: 36rpx;
        font-weight: bold;
        color: #333;
        line-height: 44rpx;
        text-align: center;
      }
    }

    .authentication-success__back {
      position: fixed;
      bottom: 460rpx;
      display: flex;
      justify-content: center;
      align-items: center;
      width: calc(100% - 150rpx);
      margin: 0 75rpx;
      height: 90rpx;
      font-size: 34rpx;
      color: #fff;
      background: #db187c;
      border-radius: 6rpx;
    }
  }
</style>